package com.ws.exer3;

public class CylinderTest {

    public static void main(String[] args) {

        Cylinder cylinder = new Cylinder();

        cylinder.setLength(3.7);
        cylinder.setRadius(2.3);

        //没有重写 findArea()时
//        double area = cylinder.findArea();//底面圆的面积
//        System.out.println(area);


        double area = cylinder.findArea();//圆柱的表面积
        System.out.println(area);

        double volume = cylinder.findVolume();//圆柱的体积
        System.out.println(volume);

    }
}
